package com.ruoyi.timesheets.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.employeeInfomation.domain.SalaryEmployee;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 员工考勤表对象 employee_timesheets
 *
 * @author ruoyi
 * @date 2024-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(resultMap = "com.ruoyi.timesheets.mapper.EmployeeTimesheetsMapper.EmployeeTimesheetsResult")
public class EmployeeTimesheets extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** $column.columnComment */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** $column.columnComment */
            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long employeeId;

    /** $column.columnComment */
            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date clockInTime;

    /** $column.columnComment */
            @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer clockOrNot;
            private SalaryEmployee salaryEmployee;
/*@Override
public String toString() {
    SalaryEmployee emp = null;
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId(emp.getId()))
            .append("clockInTime", getClockInTime())
            .append("clockOrNot", getClockOrNot())
        .toString();

}*/

        }